package org.gavin.sharding.config;

import com.mybatisflex.core.keygen.KeyGeneratorFactory;
import jakarta.annotation.PostConstruct;
import org.springframework.context.annotation.Configuration;

/**
 * RegisterConfig
 *
 * @author grl
 * @date 2024/2/1
 */
@Configuration
public class RegisterConfiguration {

    @PostConstruct
    public void register(){
        KeyGeneratorFactory.register("millisID", new MilliGeneratorConfiguration());
    }
}
